home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8488 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: mail2news.demon.co.uk!chrism.demon.co.uk
  2. From: Chris Marriott <chris@chrism.demon.co.uk>
  3. Newsgroups: comp.lang.c++,comp.lang.c,comp.os.ms-windows.programmer.misc
  4. Subject: Re: Can 'fscanf' be used in 16-bit DLL?
  5. Date: Wed, 14 Feb 96 18:30:33 GMT
  6. Organization: None
  7. Message-ID: <824322633snz@chrism.demon.co.uk>
  8. References: <DMrn2J.5F7.0.-s@hkusuc.hku.hk>
  9. Reply-To: chris@chrism.demon.co.uk
  10. X-NNTP-Posting-Host: chrism.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.30
  12. X-Mail2News-Path: chrism.demon.co.uk
  13.  
  14. In article <DMrn2J.5F7.0.-s@hkusuc.hku.hk> h8817968@hkuxb.hku.hk "Daniel" writes:
  15.  
  16. >I am trying to make a 16-bit DLL by using MSVC V1.51 but, when I 
  17. >compile the program, it gives me the follwing warning:
  18. >
  19. >warning C4013: 'fscanf' undefined; assuming extern returning int
  20. >
  21. >As expected, the linking stage gives me the following:
  22. >
  23. >error L2029: '_fscanf' : unresolved external
  24. >
  25. >It seems that 'fscanf' cannot be used if you want to produce a  
  26. >DLL.  Can anyone tell me whether my guess is true?  If no, what 
  27. >should I do if I want to use 'fscanf'.  If yes, is there any 
  28. >alternative function usable?
  29.  
  30. One option is simply not to define "_WINDLL". I used to use "fscanf" in
  31. DLLs and it appears to work OK.
  32.  
  33. Chris
  34. -- 
  35. --------------------------------------------------------------------------
  36.  Chris Marriott, Warrington, UK      | Author of SkyMap v3 award-winning 
  37.  chris@chrism.demon.co.uk            | shareware Win31/Win95 planetarium.
  38.             For full info, see http://www.execpc.com/~skymap  
  39.       Author member of Association of Shareware Professionals (ASP) 
  40. -------------------------------------------------------------------------- 
  41.  
  42.